package com.weblog.weblogapi.vo;

public enum ErrorCode {

    PARAMS_ERROR(10001,"参数有误"),
    PHONE_NOT_EXIST(10002,"手机号不存在"),
    TOKEN_ERROR(10003,"token不合法"),
    PHONE_EXIST(10004,"手机号已存在"),
    PHONE_ERROR(10005,"手机号格式错误"),
    PHONE_PWD_ERROR(10006,"手机号或密码错误"),
    PWD_ERROR(10007,"新密码不能与旧密码一样"),
    NO_PERMISSION(70001,"无访问权限"),
    SESSION_TIME_OUT(90001,"会话超时"),
    NO_LOGIN(90002,"未登录"),;

    private int code;
    private String msg;

    ErrorCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}

